package wx_controller

import (
	utils "hft/Http/Utils"
	"hft/tools/weixin/api"
	"net/url"

	"github.com/gin-gonic/gin"
)

// 获取jsapi配置
type WxConfig struct{}

func (*WxConfig) GetWxConfig(c *gin.Context) {
	configUrl, _ := url.QueryUnescape(c.Query("url"))
	data := api.WeiXinJsApiBlock.GetSignature(configUrl)
	utils.OkWithData(data, c)
}

var WxConfigController = new(WxConfig)
